from rest_framework import serializers
from .models import ActivityModels


class LisrtModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = ActivityModels
        fields = ('id', 'title', 'image', 'city', 'start_time', 'status')
        # fields=('id','image','title','start_time','end_time','status','city','address','host','abstract','description','link')


class retrieveModelSgerializer(serializers.ModelSerializer):
    class Meta:
        model = ActivityModels
        # fields=('id','title','image','city','start_time','status')

        fields = (
        'id', 'image', 'title', 'start_time', 'end_time', 'apply_time', 'status', 'city', 'address', 'host', 'abstract',
        'description', 'link')
